exports.data = {
	kind: 'Snippet',
	body: ['"t-swiper": "tdesign-miniprogram/swiper/swiper"'],
	detail: 'Swiper 轮播图',
	documentation: `在app.json或index.json中引入组件`,
	wxml: {
		kind: 'Snippet',
		body: ['<t-button${1}>${2:默认按钮}</t-button>'],
		detail: 'Button 按钮',
		documentation: `按钮用于触发一个操作，如提交表单。`,
		attrs: [
			{
				kind: 'Field',
				body: ['autoplay='],
				detail: 'autoplay',
				documentation: '是否自动播放',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['loop='],
				detail: 'loop',
				documentation: '是否循环播放',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['snap-to-edge'],
				detail: 'snap-to-edge',
				documentation:
					'当 swiper-item 的个数大于等于 2，关闭 circular 并且开启 previous-margin 或 next-margin 的时候，可以指定这个边距是否应用到第一个、最后一个元素',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['direction'],
				detail: 'direction',
				documentation:
					'轮播滑动方向，包括横向滑动和纵向滑动两个方向。可选项： horizontal/vertical',
				vals: {
					kind: 'Value',
					body: ['horizontal', 'vertical'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['navigation'],
				detail: 'navigation',
				documentation: '导航器全部配置，true 的话使用默认配置',
				vals: {
					kind: 'Value',
					body: ['horizontal', 'vertical'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['current'],
				detail: 'current',
				documentation: '当前轮播在哪一项（下标）',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['list'],
				detail: 'list',
				documentation:
					'0.32.0。图片列表。TS 类型：string[] | SwiperList[] 详细类型定义',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['height'],
				detail: 'height',
				documentation: '轮播的高度；默认单位 px',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['interval'],
				detail: 'interval',
				documentation: '轮播间隔时间',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['next-margin'],
				detail: 'next-margin',
				documentation: '后边距，可用于露出后一项的一小部分。默认单位 px',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['previous-margin'],
				detail: 'previous-margin',
				documentation: '前边距，可用于露出前一项的一小部分。默认单位 px',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['image-props='],
				detail: 'image-props',
				documentation: '透传至 image 属性',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['display-multiple-items'],
				detail: 'display-multiple-items',
				documentation: '同时显示的滑块数量',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['duration'],
				detail: 'duration',
				documentation: '同时显示的滑块数量',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['easing-function'],
				detail: 'easing-function',
				documentation:
					'指定 swiper 切换缓动动画类型。可选项：default/linear/easeInCubic/easeOutCubic/easeInOutCubic',
				vals: {
					kind: 'Value',
					body: [
						'default',
						'linear',
						'easeInCubic',
						'easeOutCubic',
						'easeInOutCubic',
					],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['pagination-position'],
				detail: 'pagination-position',
				documentation:
					'页码信息展示位置。可选项：top-left/top/top-right/bottom-left/bottom/bottom-right',
				vals: {
					kind: 'Value',
					body: [
						'top-left',
						'top',
						'top-right',
						'bottom-left',
						'bottom',
						'bottom-right',
					],
					detail: '',
					documentation: '',
				},
			},
		],
	},
	slot: {},
}
